import { SideMenuItem } from '@njt/foundation/defs/comm'

const sideMenuInfoBasic: Array<SideMenuItem> = [
  {
    id: 'sidemenu-home',
    icon: 'home',
    label: '主页',
    to: '/'
  },
  {
    id: 'sidemenu-folder-basic',
    icon: 'ion-md-list-box',
    label: '基础资料',
    children: [
      {
        id: 'sidemenu-company',
        icon: 'emoji_transportation',
        label: '公司管理',
        to: '/comm/basic/company',
        needRight: 'Comm.Company.View'
      },
      {
        id: 'sidemenu-mf',
        icon: 'business',
        label: '客商管理',
        to: '/comm/basic/mf',
        needRight: 'Comm.Mf.View'
      }
    ]
  },


  {
    id: 'sidemenu-folder-my',
    icon: 'account_box',
    label: '我的功能',
    children: [
      {
        id: 'sidemenu-myprofile',
        icon: 'account_circle',
        label: '我的资料',
        to: '/comm/my/my-profile'
      },
      {
        id: 'sidemenu-message',
        icon: 'mail_outline',
        label: '我的消息',
        to: '/comm/my/message'
      }
    ]
  },
  {
    id: 'sidemenu-folder-cfg',
    icon: 'settings_applications',
    label: '系统设置',
    children: [
      {
        id: 'sidemenu-user',
        icon: 'supervised_user_circle',
        label: '用户管理',
        to: '/comm/cfg/user',
        needRight: 'Comm.UserMgr.View'
      },
      {
        id: 'sidemenu-roleright',
        icon: 'perm_identity',
        label: '角色权限',
        to: '/comm/cfg/roleright',
        needRight: 'Comm.RoleRight.View'
      },
      {
        id: 'sidemenu-codelist',
        icon: 'list',
        label: '代码设置',
        to: '/comm/cfg/code',
        needRight: 'Comm.Code.View'
      },
      {
        id: 'sidemenu-fms',
        icon: 'storage',
        label: '文件管理',
        to: '/comm/cfg/fms',
        needRight: 'Comm.Fms.Management'
      },
      {
        id: 'sidemenu-sys-config',
        icon: 'ion-md-settings',
        label: '系统参数配置',
        to: '/wms/cfg/sys-config'
      },
      {
        id: 'sidemenu-updatelog',
        icon: 'fas fa-angle-double-up',
        label: '更新日志',
        to: '/comm/cfg/updaterecord'
      },
      {
        id: 'sidemenu-about',
        icon: 'info',
        label: '关于',
        to: '/comm/cfg/about'
      }
    ]
  },
  {
    id: 'sidemenu-log-sap',
    icon: 'fas fa-file-alt',
    label: 'SAP接口日志',
    children: [
      {
        id: 'sidemenu-sap-email-cfg',
        icon: 'ion-md-radio-button-off',
        label: '邮件提醒设置',
        to: '/sap/email-cfg'
      },
      {
        id: 'sidemenu-sap-material',
        icon: 'ion-md-radio-button-off',
        label: 'SAP Material',
        to: '/sap/material-log'
      },
      {
        id: 'sidemenu-sap-batch',
        icon: 'ion-md-radio-button-off',
        label: 'SAP Batch',
        to: '/sap/batch-log'
      },
      {
        id: 'sidemenu-sto',
        icon: 'ion-md-radio-button-off',
        label: 'STO Dispatch',
        to: '/sap/sto'
      },
      {
        id: 'sidemenu-sto-gi',
        icon: 'ion-md-radio-button-off',
        label: 'STO GI',
        to: '/sap/sto-gi'
      },
      {
        id: 'sidemenu-sto-gr',
        icon: 'ion-md-radio-button-off',
        label: 'GR',
        to: '/sap/sto-gr'
      },
      {
        id: 'sidemenu-ibd-gr',
        icon: 'ion-md-radio-button-off',
        label: 'IBD GR',
        to: '/sap/ibd-gr'
      },
      {
        id: 'sidemenu-sap-ibd',
        icon: 'ion-md-radio-button-off',
        label: 'IBD',
        to: '/sap/ibd'
      },
      {
        id: 'sidemenu-sto-gc',
        icon: 'ion-md-radio-button-off',
        label: 'GC',
        to: '/sap/sto-gc'
      },
      {
        id: 'sidemenu-sap-ibd-gc',
        icon: 'ion-md-radio-button-off',
        label: 'IBD GC',
        to: '/sap/ibd-gc'
      },
      {
        id: 'sidemenu-sap-obd',
        icon: 'ion-md-radio-button-off',
        label: 'OBD',
        to: '/sap/obd'
      },
      {
        id: 'sidemenu-sap-obd-pgi',
        icon: 'ion-md-radio-button-off',
        label: 'OBD PGI(非顺丰叫料)',
        to: '/sap/obd-pgi'
      },
      {
        id: 'sidemenu-sap-obd-pgi',
        icon: 'ion-md-radio-button-off',
        label: 'Inventory Adjustment',
        to: '/sap/inventory-adjustment'
      },
      {
        id: 'sidemenu-sap-pick',
        icon: 'ion-md-radio-button-off',
        label: 'Pick/Pack(顺丰叫料)',
        to: '/sap/pick'
      },
      {
        id: 'sidemenu-sap-stock-snapshot',
        icon: 'ion-md-radio-button-off',
        label: 'Stock Snapshot',
        to: '/sap/stock-snapshot'
      },
    ]
  },
  {
    id: 'sidemenu-api-IMS',
    icon: 'fas fa-file-alt',
    label: 'IMS接口数据',
    children: [
      {
        id: 'sidemenu-declaration',
        icon: 'ion-md-radio-button-off',
        label: '报关发票',
        to: '/ims/declaration'
      },
      {
        id: 'sidemenu-dec-back-fill',
        icon: 'ion-md-radio-button-off',
        label: '报关发票反填',
        to: '/ims/dec-back-fill'
      },
      {
        id: 'sidemenu-ob-wh-receipt',
        icon: 'ion-md-radio-button-off',
        label: 'OB仓库收货清单',
        to: '/ims/ob-wh-receipt'
      },
      {
        id: 'sidemenu-ob-contract',
        icon: 'ion-md-radio-button-off',
        label: 'OB合同',
        to: '/ims/ob-contract'
      },
      {
        id: 'sidemenu-ob-contract-withdraw',
        icon: 'ion-md-radio-button-off',
        label: 'OB合同撤回',
        to: '/ims/ob-contract-withdraw'
      },
      {
        id: 'sidemenu-bonded-transfer',
        icon: 'ion-md-radio-button-off',
        label: '保税转仓',
        to: '/ims/bonded-transfer'
      },
      {
        id: 'sidemenu-bonded-transfer-back-fill',
        icon: 'ion-md-radio-button-off',
        label: '保税转仓反填',
        to: '/ims/bonded-transfer-back-fill'
      },
      {
        id: 'sidemenu-expedited',
        icon: 'ion-md-radio-button-off',
        label: '加急',
        to: '/ims/expedited'
      }
    ]
  },
  {
    id: 'sidemenu-api-SF',
    icon: 'fas fa-file-alt',
    label: 'SF接口数据',
    children: [
      {
        id: 'sidemenu-sf-inv-log',
        icon: 'ion-md-radio-button-off',
        label: '库存查询',
        to: '/sf/inv-query-log'
      },
      {
        id: 'sidemenu-pallet-sync-log',
        icon: 'ion-md-radio-button-off',
        label: '托盘信息同步',
        to: '/sf/pallet-sync-log'
      },
      {
        id: 'sidemenu-sf-material-log',
        icon: 'ion-md-radio-button-off',
        label: '叫料通知',
        to: '/sf/notify-material'
      },
      {
        id: 'sidemenu-sf-expedited',
        icon: 'ion-md-radio-button-off',
        label: '加急',
        to: '/sf/expedited'
      },
      {
        id: 'sidemenu-lpnMoveBackLog',
        icon: 'ion-md-radio-button-off',
        label: '空托盘转移单回告日志',
        to: '/sf/lpn-move-back-log'
      },
      {
        id: 'sidemenu-sf-lpn-move',
        icon: 'ion-md-radio-button-off',
        label: '空托盘转移单',
        to: '/sf/lpn-move-log'
      },
      {
        id: 'sidemenu-lpn-data-sync',
        icon: 'ion-md-radio-button-off',
        label: '保税托盘同步',
        to: '/sf/lpn-data-log'
      }
    ]
  },
  {
    id: 'sidemenu-api-LMS',
    icon: 'fas fa-file-alt',
    label: 'LMS接口数据',
    children: [
      {
        id: 'sidemenu-lms-basic-process',
        icon: 'ion-md-radio-button-off',
        label: '工序主数据',
        to: '/lms/serial'
      },
      {
        id: 'sidemenu-lms-process',
        icon: 'ion-md-radio-button-off',
        label: '工艺数据',
        to: '/lms/process'
      },
      {
        id: 'sidemenu-lms-process-update',
        icon: 'ion-md-radio-button-off',
        label: '工艺版本更新',
        to: '/lms/process-update'
      },
      {
        id: 'sidemenu-lms-work-order',
        icon: 'ion-md-radio-button-off',
        label: '工单数据',
        to: '/lms/work-order'
      },
      {
        id: 'sidemenu-lms-inv',
        icon: 'ion-md-radio-button-off',
        label: '库存数据-全量',
        to: '/lms/inv'
      },
      {
        id: 'sidemenu-lms-inv-increment',
        icon: 'ion-md-radio-button-off',
        label: '库存数据-增量',
        to: '/lms/inv-increment'
      },
      {
        id: 'sidemenu-lms-inv-increment',
        icon: 'ion-md-radio-button-off',
        label: '工单状态回传',
        to: '/lms/work-order-state'
      }
    ]
  }
]

const sideMenuInfoBfs: Array<SideMenuItem> = [
  {
    id: 'sidemenu-folder-basic',
    icon: 'assignment',
    label: '基础资料',
    children: [
      {
        id: 'sidemenu-cb',
        icon: 'ion-md-radio-button-off',
        label: '账册管理',
        to: '/bfs/basic/cb',
        needRight: 'Bfs.Basic.Cb.View'
      },
      {
        id: 'sidemenu-gitem',
        icon: 'ion-md-radio-button-off',
        label: '经营范围管理',
        to: '/bfs/basic/gitem',
        needRight: 'Bfs.Basic.Gitem.View'
      },
      {
        id: 'sidemenu-sku',
        icon: 'ion-md-radio-button-off',
        label: '物料备案管理',
        to: '/bfs/basic/sku',
        needRight: 'Bfs.Basic.Sku.View'
      },
      {
        id: 'sidemenu-exchange',
        icon: 'ion-md-radio-button-off',
        label: '汇率管理',
        to: '/bfs/basic/exchange',
        needRight: 'Comm.Exchange.View'
      },
      {
        id: 'sidemenu-vehicle',
        icon: 'ion-md-radio-button-off',
        label: '车辆管理',
        to: '/bfs/basic/vehicle',
        needRight: 'Bfs.Basic.Vehicle.View'
      },
      {
        id: 'sidemenu-beian',
        icon: 'ion-md-radio-button-off',
        label: '备案序号管理',
        to: '/bfs/basic/jin2-beian',
        needRight: 'Bfs.Basic.Jin2BeianNo.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-rule',
    icon: 'ion-md-switch',
    label: '策略设置',
    children: [
      {
        id: 'sidemenu-rule-allocate',
        icon: 'ion-md-radio-button-off',
        label: '出货预配策略',
        to: '/bfs/rule/allocate',
        needRight: 'Bfs.Rule.RuleAllocate.View'
      },
      {
        id: 'sidemenu-rule-dec-in',
        icon: 'ion-md-radio-button-off',
        label: '进境、出口报关单策略',
        to: '/bfs/rule/dec-in',
        needRight: 'Bfs.Rule.RuleDecIn.View'
      },
      {
        id: 'sidemenu-rule-dec-out',
        icon: 'ion-md-radio-button-off',
        label: '出境、进口报关单策略',
        to: '/bfs/rule/dec-out',
        needRight: 'Bfs.Rule.RuleDecOut.View'
      },
      {
        id: 'sidemenu-rule-decimal_digits',
        icon: 'ion-md-radio-button-off',
        label: '小数位控制规则',
        to: '/bfs/rule/decimal-digits',
        needRight: 'Bfs.Rule.DecimalDigits.View'
      },
      {
        id: 'sidemenu-rule-jin2-in',
        icon: 'ion-md-radio-button-off',
        label: '金二出入库单创建规则',
        to: '/bfs/rule/jin2-in',
        needRight: 'Bfs.Rule.Jin2In.View'
      },
      {
        id: 'sidemenu-rule-bondinvt',
        icon: 'ion-md-radio-button-off',
        label: '核注清单创建规则',
        to: '/bfs/rule/bondinvt',
        needRight: 'Bfs.Rule.Bondinvt.View'
      },
      {
        id: 'sidemenu-rule-switch',
        icon: 'ion-md-radio-button-off',
        label: '系统开关配置规则',
        to: '/bfs/rule/switch',
        needRight: 'Bfs.Rule.Switch.View'
      },
      {
        id: 'sidemenu-rule-config',
        icon: 'ion-md-radio-button-off',
        label: '规则配置',
        to: '/bfs/rule/ruleconfig',
        needRight: 'Bfs.Rule.RuleConfig.View'
      }
    ]
  },
  {
    id: 'sidemenu-data-rule',
    icon: 'ion-md-options',
    label: '数据策略设置',
    children: [
      {
        id: 'sidemenu-data-rule-bondinvt',
        icon: 'ion-md-radio-button-off',
        label: '核注清单数据策略',
        to: '/bfs/data-rule/bondinvt-data',
        needRight: 'Bfs.DataRule.BondinvtData.View'
      },
      {
        id: 'sidemenu-data-rule-sas-stock',
        icon: 'ion-md-radio-button-off',
        label: '金二出入库单数据策略',
        to: '/bfs/data-rule/sas-stock-data',
        needRight: 'Bfs.DataRule.SasStockData.View'
      },
      {
        id: 'sidemenu-data-rule-dec-data',
        icon: 'ion-md-radio-button-off',
        label: '报关单数据策略',
        to: '/bfs/data-rule/dec-data',
        needRight: 'Bfs.DataRule.DecData.View'
      },
      {
        id: 'sidemenu-data-rule-dec-data',
        icon: 'ion-md-radio-button-off',
        label: '整报分出出库单数据策略',
        to: '/bfs/data-rule/bibayonetout-data',
        needRight: 'Bfs.DataRule.BibayonetoutData.View'
      }
    ]
  },
  {
    id: 'sidemenu-ib',
    icon: 'fas fa-sign-in-alt',
    label: '普通入库',
    children: [
      {
        id: 'sidemenu-ib-mgr',
        icon: 'ion-md-radio-button-off',
        label: '入库管理',
        to: '/bfs/work/asn'
      },
      {
        id: 'sidemenu-in-dec-mgr',
        icon: 'ion-md-radio-button-off',
        label: '报关单管理',
        to: '/bfs/work/in-dec'
      },
      {
        id: 'sidemenu-ib-ens-create-wizards-whole-in',
        icon: 'ion-md-radio-button-off',
        label: '以入库单整票创建',
        to: '/bfs/work/dec-whole-in'
      },
      {
        id: 'sidemenu-ib-ens-create-wizards-line-in',
        icon: 'ion-md-radio-button-off',
        label: '以入库单明细创建',
        to: '/bfs/work/dec-line-in'
      },
      {
        id: 'sidemenu-ib-written-auth-mgr',
        icon: 'ion-md-radio-button-off',
        label: '核放单管理',
        to: '/bfs/work/sas-passport-i'
      }
    ]
  },
  {
    id: 'sidemenu-ob',
    icon: 'fas fa-sign-out-alt',
    label: '普通出库',
    children: [
      {
        id: 'sidemenu-ob-mgr',
        icon: 'ion-md-radio-button-off',
        label: '出库管理',
        to: '/bfs/work/order'
      },
      {
        id: 'sidemenu-ob-ens-mgr',
        icon: 'ion-md-radio-button-off',
        label: '报关单管理',
        to: '/bfs/work/out-dec'
      },
      {
        id: 'sidemenu-ib-ens-create-wizards-whole-out',
        icon: 'ion-md-radio-button-off',
        label: '以出库单整票创建',
        to: '/bfs/work/dec-whole-out'
      },
      {
        id: 'sidemenu-ib-ens-create-wizards-line-out',
        icon: 'ion-md-radio-button-off',
        label: '以出库单明细创建',
        to: '/bfs/work/dec-line-out'
      },
      {
        id: 'sidemenu-ob-written-auth-mgr',
        icon: 'ion-md-radio-button-off',
        label: '核放单管理',
        to: '/bfs/work/sas-passport-e'
      }
    ]
  },
  {
    id: 'sidemenu-gt',
    icon: 'fas fa-ship',
    label: '一般贸易',
    children: [
      {
        id: 'sidemenu-port-mgr',
        icon: 'ion-md-radio-button-off',
        label: '口岸管理',
        to: '/bfs/trade/asn'
      },
      {
        id: 'sidemenu-gt-ens-mgr',
        icon: 'ion-md-radio-button-off',
        label: '报关单管理',
        to: '/bfs/trade/dec'
      },
      {
        id: 'sidemenu-gt-ens-create-wizards',
        icon: 'ion-md-radio-button-off',
        label: '报关单创建向导',
      },
      {
        id: 'sidemenu-port-ens-create-wizards-whole-in',
        icon: 'ion-md-radio-button-off',
        label: '以口岸管理整票创建',
        to: '/bfs/trade/dec-whole-in',
        needRight: 'Bfs.Port.AsnCreateWizard.View'
      },
      {
        id: 'sidemenu-port-ens-create-wizards-line-in',
        icon: 'ion-md-radio-button-off',
        label: '以口岸管理明细创建',
        to: '/bfs/trade/dec-line-in',
        needRight: 'Bfs.Port.AsnLineCreateWizard.View'
      },
    ]
  },
  {
    id: 'sidemenu-distribution-task',
    icon: 'fas fa-clipboard-list',
    label: '分拨作业',
    children: [
      {
        id: 'sidemenu-shipper-mm-mgr',
        icon: 'ion-md-radio-button-off',
        label: '货主保证金管理',
        to: '/bfs/allocate/storer-deposit',
        needRight: 'Bfs.Basic.StorerDeposit.View'
      },
      {
        id: 'sidemenu-bd',
        icon: 'ion-md-radio-button-off',
        label: '业务申报表',
        to: '/bfs/allocate/biz-declare',
        needRight: 'Bfs.FenBo.BizDeclare.View'
      },
      {
        id: 'sidemenu-ib-mgr',
        icon: 'ion-md-radio-button-off',
        label: '入库管理',
        to: '/bfs/allocate/asn',
        needRight: 'Bfs.FenBo.Asn.View'
      },
      {
        id: 'sidemenu-ob-mgr',
        icon: 'ion-md-radio-button-off',
        label: '出库管理',
        to: '/bfs/allocate/order',
        needRight: 'Bfs.FenBo.Order.View'
      },
      {
        id: 'sidemenu-jin2-ob-mgr',
        icon: 'ion-md-radio-button-off',
        label: '金二出库单管理',
        to: '/bfs/allocate/sas-stock',
        needRight: 'Bfs.FenBo.SasStock.View'
      },
      {
        id: 'sidemenu-written-auth-mgr',
        icon: 'ion-md-radio-button-off',
        label: '核放单管理',
        to: '/bfs/work/sas-passport',
        needRight: 'Bfs.FenBo.SasPassport.View'
      },
      {
        id: 'sidemenu-centralized-customs-clearance',
        icon: 'ion-md-radio-button-off',
        label: '集报管理',
        to: '/bfs/allocate/dec',
        needRight: 'Bfs.FenBo.JiBaoDec.View'
      },
      {
        id: 'sidemenu-centralized-customs-clearance-create-wizard',
        icon: 'ion-md-radio-button-off',
        label: '集报创建向导',
        to: '/bfs/work/dec-jibao',
        needRight: 'Bfs.FenBo.JibaoDecCreateWizard.View'
      }
    ]
  },
  {
    id: 'sidemenu-dp-ob',
    icon: 'warehouse',
    label: '完税出库',
    children: [
      {
        id: 'sidemenu-dp-ob',
        icon: 'ion-md-radio-button-off',
        label: '出库管理',
      },
      {
        id: 'sidemenu-dp-zbfc-mgr',
        icon: 'ion-md-radio-button-off',
        label: '整报分出出库单管理',
      },
      {
        id: 'sidemenu-dp-written-auth-mgr',
        icon: 'ion-md-radio-button-off',
        label: '核放单管理',
      }
    ]
  },
  {
    id: 'sidemenu-inventory-mgr',
    icon: 'home_work',
    label: '库存管理',
    children: [
      {
        id: 'sidemenu-inv-detail-search',
        icon: 'ion-md-radio-button-off',
        label: '库存明细查询',
        to: '/bfs/inv/inv-line-list',
        needRight: 'Bfs.Inv.Inv.View'
      },
      {
        id: 'sidemenu-inv-list',
        icon: 'ion-md-radio-button-off',
        label: '库存汇总查询',
        to: '/bfs/inv/inv-list',
        needRight: 'Bfs.Inv.Inv.View'
      },
      {
        id: 'sidemenu-inv-carry-over',
        icon: 'ion-md-radio-button-off',
        label: '库存结转',
        to: '/bfs/inv/inv-transfer'
      },
      {
        id: 'sidemenu-inv-freeze',
        icon: 'ion-md-radio-button-off',
        label: '库存冻结/解冻',
        to: '/bfs/inv/inv-hold',
        needRight: 'Bfs.Inv.Hold.View'
      },
      {
        id: 'sidemenu-inv-freeze-log',
        icon: 'ion-md-radio-button-off',
        label: '冻结/解冻日志',
        to: '/bfs/inv/inv-hold-log'
      }
    ]
  },
  {
    id: 'sidemenu-bill-mgr',
    icon: 'fas fa-file-invoice-dollar',
    label: '计费管理',
    children: [
      {
        id: 'sidemenu-billing-mgr',
        icon: 'ion-md-radio-button-off',
        label: '计费策略管理',
        to: '/bfs/bill/billing-policy',
        needRight: 'Bfs.Bill.BillingPolicy.View'
      },
      {
        id: 'sidemenu-billing-item-mgr',
        icon: 'ion-md-radio-button-off',
        label: '计费条目管理',
        to: '/bfs/bill/billing-item',
        needRight: 'Bfs.Bill.BillingItem.View'
      },
      {
        id: 'sidemenu-bill-download',
        icon: 'ion-md-radio-button-off',
        label: '计费报表',
        to: '/bfs/bill/bill-download',
        needRight: 'Bfs.Bill.BillingItem.View'
      }
    ]
  },
  {
    id: 'sidemenu-report-search',
    icon: 'dvr',
    label: '报表查询',
    children: [
      {
        id: 'sidemenu-inventory-summary-report',
        icon: 'ion-md-radio-button-off',
        label: 'MH2库存汇总报表',
        to: '/bfs/report/inventory-summary-report'
      },
      {
        id: 'sidemenu-bonded-inventory-over-months-warning',
        icon: 'ion-md-radio-button-off',
        label: '保税库存超期预警',
        to: '/bfs/report/bonded-inventory-over-months-warning'
      },
      {
        id: 'sidemenu-bill-count',
        icon: 'ion-md-radio-button-off',
        label: '账单统计报表',
        to: '/bfs/report/bill-count',
        needRight: 'Bfs.Rpt.BillCount.View'
      },
      {
        id: 'sidemenu-inv-allocate',
        icon: 'ion-md-radio-button-off',
        label: '核销报表',
        to: '/bfs/report/inv-allocate',
        needRight: 'Bfs.Rpt.InvAllocate.View'
      },
    ]
  },
  {
    id: 'sidemenu-folder-customs',
    icon: 'fas fa-anchor',
    label: '海关基础资料',
    children: [
      {
        id: 'sidemenu-customs',
        icon: 'ion-md-radio-button-off',
        label: '导入',
        to: '/customs/import',
        needRight: 'Customs.BasicData.Edit'
      },
      {
        id: 'sidemenu-mf',
        icon: 'ion-md-radio-button-off',
        label: '申报要素',
        to: '/customs/classify',
        needRight: 'Customs.BasicData.View'
      },
      {
        id: 'sidemenu-company',
        icon: 'ion-md-radio-button-off',
        label: '商检信息',
        to: '/customs/ciq',
        needRight: 'Customs.BasicData.View'
      },
      {
        id: 'sidemenu-exchange',
        icon: 'ion-md-radio-button-off',
        label: '海关商品编码',
        to: '/customs/complex',
        needRight: 'Customs.BasicData.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-cfg',
    icon: 'settings_applications',
    label: '系统设置',
    children: [
      {
        id: 'sidemenu-sys-config',
        icon: 'ion-md-radio-button-off',
        label: '系统配置',
        to: '/bfs/cfg/sys-config',
        needRight: 'Bfs.Cfg.SysConfig.View'
      },
      {
        id: 'sidemenu-easipass-api',
        icon: 'ion-md-radio-button-off',
        label: '亿通Api接口请求队列',
        to: '/bfs/cfg/easipass-api',
        needRight: 'Bfs.Cfg.SysConfig.EasipassApi.View'
      }
    ]
  }
]

const sideMenuInfoWms: Array<SideMenuItem> = [
  {
    id: 'sidemenu-folder-basic',
    icon: 'ion-md-list-box',
    label: '基础资料',
    children: [
      {
        id: 'sidemenu-wh',
        icon: 'home_work',
        label: '仓库管理',
        to: '/wms/basic/wh',
        needRight: 'Wms.Basic.Wh.View'
      },
      {
        id: 'sidemenu-zone',
        icon: 'table_chart',
        label: '储区管理',
        to: '/wms/basic/zone',
        needRight: 'Wms.Basic.Zone.View'
      },
      {
        id: 'sidemenu-loc',
        icon: 'eva-pantone',
        label: '储位管理',
        to: '/wms/basic/loc',
        needRight: 'Wms.Basic.Loc.View'
      },
      {
        id: 'sidemenu-brand',
        icon: 'fab fa-bootstrap',
        label: '品牌管理',
        to: '/wms/basic/brand',
        needRight: 'Wms.Basic.Brand.View'
      },
      {
        id: 'sidemenu-package',
        icon: 'eva-clipboard',
        label: '包装规格',
        to: '/wms/basic/package',
        needRight: 'Wms.Basic.Package.View'
      },
      {
        id: 'sidemenu-sku',
        icon: 'all_inbox',
        label: '料号管理',
        to: '/wms/basic/sku',
        needRight: 'Wms.Basic.Sku.View'
      },
      {
        id: 'sidemenu-lpn',
        icon: 'fas fa-inbox',
        label: '容器管理',
        to: '/wms/basic/lpn',
        needRight: 'Wms.Basic.Lpn.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-asn',
    icon: 'fas fa-sign-in-alt',
    label: '入库操作',
    children: [
      {
        id: 'sidemenu-asn',
        icon: 'ion-md-radio-button-off',
        label: '预定进货通知单',
        to: '/wms/work/asn',
        needRight: 'Wms.Work.Asn.View'
      },
      {
        id: 'sidemenu-asn-itg',
        icon: 'ion-md-radio-button-off',
        label: '预定进货通知单明细',
        to: '/wms/work/asn-itg',
        needRight: 'Wms.Work.Asn.View'
      },
      {
        id: 'sidemenu-asn-receive',
        icon: 'ion-md-radio-button-off',
        label: '入库验收',
        to: '/wms/work/asn-receive',
        needRight: 'Wms.Work.Asn.ReceiveGoods'
      },
      {
        id: 'sidemenu-asn-receive-print-label',
        icon: 'ion-md-radio-button-off',
        label: '标签补打',
        to: '/wms/work/asn-receive-print-label',
        needRight: 'Wms.Work.Asn.ReceiveGoods'
      }
    ]
  },
  {
    id: 'sidemenu-folder-sorder',
    icon: 'fas fa-sign-out-alt',
    label: '出库操作',
    children: [
      {
        id: 'sidemenu-order',
        icon: 'ion-md-radio-button-off',
        label: '出货通知单',
        to: '/wms/work/order',
        needRight: 'Wms.Work.Order.View'
      },
      {
        id: 'sidemenu-order-itg',
        icon: 'ion-md-radio-button-off',
        label: '出货通知单明细',
        to: '/wms/work/order-itg',
        needRight: 'Wms.Work.Order.View'
      },
      {
        id: 'sidemenu-pack',
        icon: 'ion-md-radio-button-off',
        label: '出货装箱信息',
        to: '/wms/work/pack',
        needRight: 'Wms.Work.Order.PackView'
      },
      {
        id: 'sidemenu-pack-itg',
        icon: 'ion-md-radio-button-off',
        label: '出货装箱明细',
        to: '/wms/work/pack-itg',
        needRight: 'Wms.Work.Order.PackView'
      },
      {
        id: 'sidemenu-print-label',
        icon: 'ion-md-radio-button-off',
        label: '客户标签打印',
        to: '/wms/work/print-label',
        needRight: 'Wms.Work.Order.PackLabeling'
      },
      {
        id: 'sidemenu-order-qc',
        icon: 'ion-md-radio-button-off',
        label: '出库QC',
        to: '/wms/work/qc',
        needRight: 'Wms.Work.Order.PackQc'
      },
      {
        id: 'sidemenu-order-qc-manually',
        icon: 'ion-md-radio-button-off',
        label: '出库QC辅助',
        to: '/wms/work/qc-manually',
        needRight: 'Wms.Work.Order.PackQc'
      },
      {
        id: 'sidemenu-order-pallet',
        icon: 'ion-md-radio-button-off',
        label: '打托信息',
        to: '/wms/work/pallet',
        needRight: 'Wms.Work.Order.PalletView'
      },
      {
        id: 'sidemenu-order-shipment',
        icon: 'ion-md-radio-button-off',
        label: '提货单',
        to: '/wms/work/shipment',
        needRight: 'Wms.Work.Order.ShipmentView'
      },
      {
        id: 'sidemenu-order-express',
        icon: 'ion-md-radio-button-off',
        label: '快递单',
        to: '/wms/work/express',
        needRight: 'Wms.Work.Order.ExpressOrderView'
      },
      {
        id: 'sidemenu-order-express',
        icon: 'ion-md-radio-button-off',
        label: '波次执行',
        to: '/wms/work/wave',
        needRight: 'Wms.Work.Wave.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-inventory',
    icon: 'home_work',
    label: '库存管理',
    children: [
      {
        id: 'sidemenu-lotattr',
        icon: 'ion-md-radio-button-off',
        label: '批号属性',
        to: '/wms/inv/lotattr',
        needRight: 'Wms.Inv.Inventory.View'
      },
      {
        id: 'sidemenu-lot',
        icon: 'ion-md-radio-button-off',
        label: '批号库存',
        to: '/wms/inv/lot',
        needRight: 'Wms.Inv.Inventory.View'
      },
      {
        id: 'sidemenu-loc',
        icon: 'ion-md-radio-button-off',
        label: '储位库存',
        to: '/wms/inv/loc',
        needRight: 'Wms.Inv.Inventory.View'
      },
      {
        id: 'sidemenu-tran',
        icon: 'ion-md-radio-button-off',
        label: '库存交易日志',
        to: '/wms/inv/tran',
        needRight: 'Wms.Inv.Inventory.View'
      },
      {
        id: 'sidemenu-move',
        icon: 'ion-md-radio-button-off',
        label: '移库单',
        to: '/wms/inv/move',
        needRight: 'Wms.Inv.InvMove.View'
      },
      {
        id: 'sidemenu-adj',
        icon: 'ion-md-radio-button-off',
        label: '库存调整',
        to: '/wms/inv/adj',
        needRight: 'Wms.Inv.InvAdj.View'
      },
      {
        id: 'sidemenu-transfer',
        icon: 'ion-md-radio-button-off',
        label: '库存调拨',
        to: '/wms/inv/transfer',
        needRight: 'Wms.Inv.InvTransfer.View'
      },
      {
        id: 'sidemenu-counting',
        icon: 'ion-md-radio-button-off',
        label: '库存盘点',
        to: '/wms/inv/counting',
        needRight: 'Wms.Inv.InvCounting.View'
      },
      {
        id: 'sidemenu-change-sap-stock-type',
        icon: 'ion-md-radio-button-off',
        label: '更改SAP库存状态',
        to: '/wms/inv/change-sap-stock-type',
        needRight: 'Wms.Inv.Inventory.ChangeSapStockType'
      },
      {
        id: 'sidemenu-inventory',
        icon: 'ion-md-radio-button-off',
        label: '库存短收',
        to: '/wms/inv/inventory-list',
        needRight: 'Wms.Inv.Inventory.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-task',
    icon: 'fas fa-tasks',
    label: '任务管理',
    children: [
      {
        id: 'sidemenu-rb',
        icon: 'ion-md-radio-button-off',
        label: 'WCS任务',
        to: '/wms/task/rb',
        needRight: 'Wms.Wcs.RobotTask.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-sku',
    icon: 'fas fa-barcode',
    label: '贴标管理',
    children: [
      {
        id: 'sidemenu-label-management',
        icon: 'ion-md-radio-button-off',
        label: '贴标工序管理',
        to: '/wms/sku/label-management',
        needRight: 'Wms.Inv.Inventory.LabelProcessView'
      },
      {
        id: 'sidemenu-sku-move',
        icon: 'ion-md-radio-button-off',
        label: '贴标工艺',
        to: '/wms/sku/move',
        needRight: 'Wms.Inv.Inventory.LabelProcessView'
      },
      {
        id: 'sidemenu-sku-work-order',
        icon: 'ion-md-radio-button-off',
        label: '贴标工单',
        to: '/wms/sku/work-order',
        needRight: 'Wms.Inv.Inventory.LabelProcessView'
      },
      {
        id: 'sidemenu-label-mhl-wms-move',
        icon: 'ion-md-radio-button-off',
        label: '贴标移库单',
        to: '/wms/sku/mhl-wms-move',
        needRight: 'Wms.Inv.InvMove.View'
      },
      {
        id: 'sidemenu-sku-labeling-abnormal',
        icon: 'ion-md-radio-button-off',
        label: '贴标异常上报/解除',
        to: '/wms/sku/labeling-abnormal',
        needRight: 'Wms.Inv.Inventory.LabelingAbnormalView'
      },
    ]
  },
  {
    id: 'sidemenu-folder-lpn',
    icon: 'fas fa-inbox',
    label: '容器管理',
    children: [
      {
        id: 'sidemenu-lpn',
        icon: 'ion-md-radio-button-off',
        label: '容器基础信息',
        to: '/wms/lpn/lpn',
        needRight: 'Wms.Lpn.Lpn.View'
      },
      {
        id: 'sidemenu-lpn-view',
        icon: 'ion-md-radio-button-off',
        label: '空托盘转移任务',
        to: '/wms/lpn/lpn-view',
        needRight: 'WmsLib.Consts.RightDef.Lpn_View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-bill',
    icon: 'fas fa-file-invoice-dollar',
    label: '计费',
    children: [
      {
        id: 'sidemenu-billing',
        icon: 'ion-md-radio-button-off',
        label: '计费策略',
        to: '/wms/bill/billing-policy',
        needRight: 'Wms.Bill.BillingPolicy.View'
      },
      {
        id: 'sidemenu-billing-item',
        icon: 'ion-md-radio-button-off',
        label: '计费条目',
        to: '/wms/bill/billing-item',
        needRight: 'Wms.Bill.BillingItem.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-piecework',
    icon: 'fas fa-file-invoice',
    label: '计件',
    children: [
      {
        id: 'sidemenu-piecework',
        icon: 'ion-md-radio-button-off',
        label: '计件策略',
        to: '/wms/piecework/piecework-policy',
        needRight: 'Wms.Piecework.PieceworkPolicy.View'
      },
      {
        id: 'sidemenu-piecework-item',
        icon: 'ion-md-radio-button-off',
        label: '计件条目',
        to: '/wms/piecework/piecework-item',
        needRight: 'Wms.Piecework.PieceworkItem.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-rule',
    icon: 'ion-md-switch',
    label: '策略设置',
    children: [
      {
        id: 'sidemenu-lacr',
        icon: 'ion-md-radio-button-off',
        label: '批次属性管控规则',
        to: '/wms/rule/lacr',
        needRight: 'Wms.Rule.Lacr.View'
      },
      {
        id: 'sidemenu-packrule',
        icon: 'ion-md-radio-button-off',
        label: '出货装箱建议规则',
        to: '/wms/rule/packrule',
        needRight: 'Wms.Rule.PackRule.View'
      },
      {
        id: 'sidemenu-allocaterule',
        icon: 'ion-md-radio-button-off',
        label: '出货配货规则',
        to: '/wms/rule/allocaterule',
        needRight: 'Wms.Rule.AllocateRule.View'
      },
      {
        id: 'sidemenu-putawayzone',
        icon: 'ion-md-radio-button-off',
        label: '上架区域设置',
        to: '/wms/rule/putawayzone',
        needRight: 'Wms.Rule.PutawayZone.View'
      },
      {
        id: 'sidemenu-putawayrule',
        icon: 'ion-md-radio-button-off',
        label: '上架规则',
        to: '/wms/rule/putawayrule',
        needRight: 'Wms.Rule.PutawayRule.View'
      },
      {
        id: 'sidemenu-ruleconfig',
        icon: 'ion-md-radio-button-off',
        label: '规则配置',
        to: '/wms/rule/ruleconfig',
        needRight: 'Wms.Lbl.LblConfig.View'
      },
      {
        id: 'sidemenu-express-default-config',
        icon: 'ion-md-radio-button-off',
        label: '快递默认配置',
        to: '/wms/rule/express-default-config',
        needRight: 'Wms.Rule.ExpressDefaultConfig.View'
      },
      {
        id: 'sidemenu-wave-rule',
        icon: 'ion-md-radio-button-off',
        label: '波次规则管理',
        to: '/wms/rule/wave-rule',
        needRight: 'Wms.Rule.WaveRule.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-lbl',
    icon: 'eva-printer',
    label: '标签设置',
    children: [
      {
        id: 'sidemenu-config',
        icon: 'ion-md-radio-button-off',
        label: '标签打印设置',
        to: '/wms/lbl/config',
        needRight: 'Wms.Lbl.LblConfig.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-rpt',
    icon: 'dvr',
    label: '报表管理',
    children: [
      {
        id: 'sidemenu-asn-line-report',
        icon: 'ion-md-radio-button-off',
        label: '入库明细',
        to: '/wms/rpt/asn-line-report',
        needRight: 'Wms.Rpt.AsnLineReport.View'
      },
      {
        id: 'sidemenu-asn-summary-report',
        icon: 'ion-md-radio-button-off',
        label: '入库汇总',
        to: '/wms/rpt/asn-summary-report',
        needRight: 'Wms.Rpt.AsnSummaryReport.View'
      },
      {
        id: 'sidemenu-order-line-report',
        icon: 'ion-md-radio-button-off',
        label: '出库明细',
        to: '/wms/report/order-line-report',
        needRight: 'Wms.Rpt.OrderLineReport.View'
      },
      {
        id: 'sidemenu-order-summary-report',
        icon: 'ion-md-radio-button-off',
        label: '出库汇总',
        to: '/wms/report/order-summary-report',
        needRight: 'Wms.Rpt.OrderSummaryReport.View'
      },
      {
        id: 'sidemenu-inv-loc-report',
        icon: 'ion-md-radio-button-off',
        label: '库存报表',
        to: '/wms/rpt/inv-loc-report',
        needRight: 'Wms.Rpt.InvLocReport.View'
      },
      {
        id: 'sidemenu-inv-transcation-report',
        icon: 'ion-md-radio-button-off',
        label: '库存异动看板',
        to: '/wms/rpt/inv-transcation-report',
        needRight: 'Wms.Rpt.InvTranscationReport.View'
      },
      {
        id: 'sidemenu-inv-remaining',
        icon: 'ion-md-radio-button-off',
        label: '剩余库存报表',
        to: '/wms/rpt/inv-remaining',
        needRight: 'Wms.Rpt.Remaining.View'
      },
      {
        id: 'sidemenu-inv-check',
        icon: 'ion-md-radio-button-off',
        label: '库存盘点报表',
        to: '/wms/rpt/inv-check',
        needRight: 'Wms.Rpt.Rpt.ExportInvCheckReport'
      },
      {
        id: 'sidemenu-monthly-in-pallet-count',
        icon: 'ion-md-radio-button-off',
        label: '每月入库托盘数量统计',
        to: '/wms/rpt/monthly-in-pallet-count',
        needRight: 'Wms.Rpt.Rpt.MonthlyInPalletCount'
      },
      {
        id: 'sidemenu-up-missing-of-move-reminder',
        icon: 'ion-md-radio-button-off',
        label: '移库漏上架提示',
        to: '/wms/rpt/up-missing-of-move-reminder',
        needRight: 'Wms.Rpt.Rpt.UpMissingOfInRemindReport'
      },
      {
        id: 'sidemenu-send-changes-in-inv-report',
        icon: 'ion-md-radio-button-off',
        label: '库存库位变动',
        to: '/wms/rpt/send-changes-in-inv-report',
        needRight: 'Wms.Rpt.Rpt.SendChangesInInv'
      },
      {
        id: 'sidemenu-send-changes-in-inv-report',
        icon: 'ion-md-radio-button-off',
        label: '验收完成信息',
        to: '/wms/rpt/send-received-report',
        needRight: 'Wms.Rpt.Rpt.DailyDoneReceivedAsnReport'
      },
      {
        id: 'sidemenu-up-missing-of-in-remind-report',
        icon: 'ion-md-radio-button-off',
        label: '入库和库存漏上架提示',
        to: '/wms/rpt/up-missing-of-in-remind-report',
        needRight: 'Wms.Rpt.Rpt.UpMissingOfInRemindReport'
      },
      {
        id: 'sidemenu-labeling-contract-warning',
        icon: 'ion-md-radio-button-off',
        label: '已放行无需贴标合同预警',
        to: '/wms/rpt/labeling-contract-warning',
        needRight: 'Wms.Rpt.Rpt.ReleasedNeedlessLabelingContractWarning'
      },
      {
        id: 'sidemenu-send-inventory-move-ment-to-ob-rpt',
        icon: 'ion-md-radio-button-off',
        label: '库存全部移动到OB区合同号',
        to: '/wms/rpt/send-inventory-move-ment-to-ob-rpt',
        needRight: 'Wms.Rpt.Rpt.InventoryMovementToOB'
      },
      {
        id: 'sidemenu-send-inv-in-labeld-area-and-cleared-custom-rpt',
        icon: 'ion-md-radio-button-off',
        label: '库存在已贴标区已清关库存预警',
        to: '/wms/rpt/send-inv-in-labeld-area-and-cleared-custom-rpt',
        needRight: 'Wms.Rpt.Rpt.InvInLabeledAreaAndClearedCustom'
      },
      {
        id: 'sidemenu-inv-in-the-labeled-zone-for-more-than-setting-days-warning',
        icon: 'ion-md-radio-button-off',
        label: '库存在贴标区超过10天数预警',
        to: '/wms/rpt/inv-in-the-labeled-zone-for-more-than-setting-days-warning',
        needRight: 'Wms.Rpt.Rpt.InvInTheLabeledZoneForMoreThanSettingDaysWarning'
      },
    ]
  },
  {
    id: 'sidemenu-folder-my',
    icon: 'account_box',
    label: '我的功能',
    children: [
      {
        id: 'sidemenu-piecework',
        icon: 'fas fa-file-invoice',
        label: '我的计件汇总',
        to: '/wms/my/piecework-summary'
      },
      {
        id: 'sidemenu-piecework-item-list',
        icon: 'fas fa-file-alt',
        label: '我的计件明细',
        to: '/wms/my/piecework-item-list'
      }
    ]
  },
  {
    id: 'sidemenu-folder-cfg',
    icon: 'settings_applications',
    label: '系统设置',
    children: [
      {
        id: 'sidemenu-sys-config',
        icon: 'ion-md-settings',
        label: '系统参数配置',
        to: '/wms/cfg/sys-config'
      },
    ]
  }
]

const sideMenus = [sideMenuInfoBasic, sideMenuInfoBfs, sideMenuInfoWms]

export default sideMenus
